package start.demo01.inherit;

import lombok.Data;

@Data
public class Sup {
    protected static int count=0;
    public Sup(){}
    private String ss="sup";
    public Sup(String ss){
        this.ss=ss;
        this.getS();
        this.show();
    }
    public static void show(){
        System.out.println("sup静态方法");
    }

    public void add(){
        count++;
    }
    public int getCount(){
        return this.count;
    }
    public void getS(){
        System.out.println(this.ss);
    }
//    private String getS(){
//        return "da";
//    }
    public static class tt{
        public tt(){
            System.out.println("as");
        }
    }
    protected void protecte(){
        System.out.println("测试protected继承");
    }
}
